<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$CONF['shopTitle']['fieldValue']}后台管理中心</title>
    <link href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="__CSS__/AdminLTE.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 9]>
    <script src="__PUBLIC__/js/html5shiv.min.js"></script>
    <script src="__PUBLIC__/js/respond.min.js"></script>
    <![endif]-->
    <script src="__PUBLIC__/js/jquery1.11.1.min.js"></script>
    <script src="__PUBLIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/common.js"></script>
    <script src="__PUBLIC__/plugins/plugins/plugins.js"></script>
    <script src="__PUBLIC__/plugins/formValidator/formValidator-4.1.3.js"></script>
</head>

<body class="wst-page">
<input type='hidden' id='id' value='{$obj.id}'/>
<table class="table table-hover table-striped table-bordered wst-form">

    <tr>
        <th width='200' align='right'>[用户编号]用户名 <font color='red'></font>：</th>
        <td>[{$obj.userId}]{$obj.userName}</td>
    </tr>
    <tr>
        <th width='200'>银行名 <font color='red'></font>：</th>
        <td>{$obj.bankName}</td>
    </tr>

    <tr>
        <th width='200'>开户行地址 <font color='red'></font>：</th>
        <td>{$obj.bankAccess}</td>
    </tr>
    <tr>
        <th width='200'>银行卡号 <font color='red'></font>：</th>
        <td>{$obj.bankNum}</td>
    </tr>

    <tr>
        <th width='200'>持卡人姓名 <font color='red'></font>：</th>
        <td>{$obj.bankUserName}</td>
    </tr>
    <tr>
        <th width='200'>申请金额 <font color='red'></font>：</th>
        <td>{$obj.applyPrice}</td>
    </tr>
    <tr>
        <th width='200'>联系电话 <font color='red'></font>：</th>
        <td>{$obj.tel}</td>
    </tr>

    <tr>
        <th width='200'>申请时间 <font color='red'></font>：</th>
        <td>{$obj.time||date="Y-m-d",###}</td>
    </tr>

    <tr>
        <td colspan='2' style='padding-left:250px;'>
            <if condition="$obj['status'] == 0 ">
                <button type="submit"  onclick="changeStatus(1)" class="btn btn-success">处&nbsp;理</button>

                <elseif condition="$obj['status'] == 1 "/>
                <button type="submit"  onclick="changeStatus(2)" class="btn btn-success">通&nbsp;过</button>
                <button type="submit"  onclick="changeStatus(3)" class="btn btn-danger">不通过</button>

                <elseif condition="$obj['status'] == 2 "/>
                <button type="submit"  class="btn btn-success">已处理</button>
                <elseif condition="$obj['status'] == 3 "/>
                <span class="btn btn-danger">不通过</span>
                <else/>


            </if>



           <button type="button" class="btn btn-primary" onclick='javascript:location.href="{$referer}"'>返&nbsp;回</button>
        </td>
    </tr>
</table>

<script>
    var ThinkPHP = window.Think = {
        "ROOT"   : "__ROOT__",
        "APP"    : "__APP__",
        "PUBLIC" : "__PUBLIC__",
        "DEEP"   : "{:C('URL_PATHINFO_DEPR')}",
        "MODEL"  : ["{:C('URL_MODEL')}", "{:C('URL_CASE_INSENSITIVE')}", "{:C('URL_HTML_SUFFIX')}"],
        "VAR"    : ["{:C('VAR_MODULE')}", "{:C('VAR_CONTROLLER')}", "{:C('VAR_ACTION')}"]
    }
</script>
<script src="__PUBLIC__/js/think.js"></script>
<script>










    function changeStatus(v){

        var id = $("#id").val();
        Plugins.waitTips({title:'信息提示',content:'正在操作，请稍后...'});


        $.post("{:U('Admin/Top/applyEdit')}",{id:id,status:v},function(data,textStatus){
            if(data!=0){
                Plugins.setWaitTipsMsg({content:'操作成功',timeout:1000,callback:function(){
                    location.reload();
                }});
            }else{

                Plugins.Tips({title:'信息提示',icon:'error',content:'操作失败!',timeout:1000});
//                location.reload();

            }
        });
    }



</script>
</body>
</html>